home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / BBS / WMCHAT1.ZIP / WMCHAT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-17  |  1.9 KB  |  65 lines

  1. #ifndef _WMCHAT_H_
  2. #define _WMCHAT_H_
  3.  
  4. /* If you experience strange problems, be sure that other locations aren't
  5.    using the 5000-5009 range.  If they are, you can change the below ones
  6.    to anything you like, they're not dependent on the number */
  7.  
  8. #define INST_LOC_CH1          5000
  9. #define INST_LOC_CH2          5001
  10. #define INST_LOC_CH3          5002
  11. #define INST_LOC_CH4          5003
  12. #define INST_LOC_CH5          5004
  13. #define INST_LOC_CH6          5005
  14. #define INST_LOC_CH7          5006 
  15. #define INST_LOC_CH8          5007
  16. #define INST_LOC_CH9          5008
  17. #define INST_LOC_CH10         5009
  18.  
  19. #define INST_FLAGS_INVIS      0x0004  /* For invisibility */
  20.  
  21. typedef struct {
  22.   int r;
  23.   char aword[12];
  24.   char toprint[80];
  25.   char toperson[80];
  26.   char toall[80];
  27.   char singular[80];
  28. } ch_action;
  29.  
  30. /* Edit this line to allow > 100 actions.  There are actually 101 possible
  31.    actions by default (0 through 100 = 101) but it would've looked goofy
  32.    to use the number 99 :) */
  33. #define MAX_NUM_ACT 100
  34.  
  35. /* File: wmchat.c */
  36.  
  37. void wmchat(void);
  38. void who_online(int *nodes, int loc);
  39. void intro(int loc);
  40. void ch_direct(char *msg, int loc, char *color);
  41. void ch_whisper(char *msg, char *color);
  42. int rip_words(int start, char *cmsg, char *wd, int size, char lookfor);
  43. int wusrinst(char *n);
  44. void secure_ch(int ch);
  45. int unsecure_ch(char *r);
  46. void cleanup_chat(void);
  47. void page_user(int loc);
  48. void moving(int x, int loc);
  49. void out_msg(char *msg, int loc);
  50. void get_colors(char *color);
  51. void load_actions(void);
  52. void add_action(ch_action act);
  53. void free_actions(void);
  54. int f_action(int start, int end, char *aword);
  55. int check_action(char *msg, char *color, int loc);
  56. void exec_action(char *msg, char *color, int loc, int nact);
  57. void action_help(int num);
  58. void ga(char *msg, char *color, int loc);
  59. void toggle_avail(void);
  60. void toggle_invis(void);
  61. void exit_chat(unsigned char *s, unsigned char *r);
  62. void set_wmstr(void);
  63.  
  64. #endif
  65.